package com.sunye.elasticsearch.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sunye.elasticsearch.entity.*;
import org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sunye
 * @since 2022-07-13
 */
public interface EsDogService extends IService<EsDog> {

    Iterable selectAll();

    void changeSellingpoint(ChangeSelling changeSelling);

    NativeSearchQueryBuilder searchDogsByEs(EsDogSearchDTO dogSearchDTO, PageVO<EsDogIndex> page);

    List searchDogsGroupBy(EsDogSearchDTO dogSearchDTO);
}
